
//----------------------- IO -----------------------------
#define LED 		_RD1
#define LEDtris	 	_TRISD1

//------------- Clock frequency values ------------------------
//used for UART and SPI baud rate generation.
#define GetSystemClock()		(32000000ul)			// Hz
#define GetInstructionClock()	(GetSystemClock()/2)	// Normally GetSystemClock()/4 for PIC18, GetSystemClock()/2 for PIC24/dsPIC, and GetSystemClock()/1 for PIC32.  Might need changing if using Doze modes.
#define GetPeripheralClock()	(GetSystemClock()/2)	// Normally GetSystemClock()/4 for PIC18, GetSystemClock()/2 for PIC24/dsPIC, and GetSystemClock()/1 for PIC32.  Divisor may be different if using a PIC32 since it's configurable.



//-------------- Serial CONFIGURATION --------------------
#define	BRATE		115200					// 115kbps
#define U2RxPin _U2RXR = 10					// U2RX no pino RP10
#define U2TxPin	_RP17R = 5					// U2TX no pino RP17


#define PWM1out _RP24R = 18
